#include "swap.h"
#include <iostream>

int main()
{
    int a = 10;
    int b = 20;
    int c[2] = {a, b};

    int *d = swap_value(c);
    printf("After swap by swap_value:\n");
    printf("a = %d b = %d\n\n", d[0], d[1]);

    swap_point(&a, &b);
    printf("After swap by swap_point:\n");
    printf("a = %d b = %d\n\n", a, b);

    swap_ref(a, b);
    printf("After swap by swap_ref:\n");
    printf("a = %d b = %d\n\n", a, b);


}